import { legacy_createStore,combineReducers,applyMiddleware  } from 'redux'

import thunk from 'redux-thunk'
import logger from 'redux-logger'

import reudcer from "./reducer"

// 合并我的所有仓库
const ALl_reducer = combineReducers({
    reudcer,
    // reudcer1
})

// 使用legacy_createStore 创建我的仓库 第一个参数 写你要创建的仓库 第二个参数 写你的中间件

const store = legacy_createStore(ALl_reducer,applyMiddleware(thunk,logger))

export default store